package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysMenuPAndC {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer parentId;
    @TableField("url")
    private String path;
    private String name;
    private String perms;
    private Integer type;

    private Integer orderNum;
    private String icon;
    // hidden在数据库中是 0和1，如果在 Java中使用Boolean来接受的话，1会自动转true; 0会转false;
    private Boolean hidden;

    private String parentTitle;

    private List<SysMenuPAndC> children;
}
